<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>流程审批 - OA办公系统</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="../../css/style.css">
</head>
<body class="bg-gray-50 h-screen overflow-auto p-6">
    <div class="container mx-auto fade-in">
        <!-- 页面标题 -->
        <div class="flex justify-between items-center mb-6">
            <h1 class="text-2xl font-bold text-gray-800">流程审批</h1>
            <div class="flex space-x-2">
                <button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 flex items-center">
                    <i class="fas fa-plus mr-2"></i>
                    <span>发起审批</span>
                </button>
                <div class="relative">
                    <input type="text" placeholder="搜索审批流程" class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
                    <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
                </div>
            </div>
        </div>

        <!-- 审批分类标签 -->
        <div class="bg-white rounded-lg shadow mb-6">
            <div class="flex border-b overflow-x-auto">
                <button class="px-6 py-3 text-blue-500 border-b-2 border-blue-500 font-medium">待我审批 (8)</button>
                <button class="px-6 py-3 text-gray-500 hover:text-blue-500">我已审批 (24)</button>
                <button class="px-6 py-3 text-gray-500 hover:text-blue-500">我发起的 (12)</button>
                <button class="px-6 py-3 text-gray-500 hover:text-blue-500">抄送我的 (5)</button>
                <button class="px-6 py-3 text-gray-500 hover:text-blue-500">全部流程</button>
            </div>
        </div>

        <!-- 筛选条件 -->
        <div class="bg-white rounded-lg shadow p-4 mb-6">
            <div class="flex flex-wrap items-center gap-4">
                <div class="flex items-center">
                    <span class="text-gray-500 mr-2">流程类型:</span>
                    <select class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500">
                        <option>全部</option>
                        <option>请假申请</option>
                        <option>报销申请</option>
                        <option>出差申请</option>
                        <option>采购申请</option>
                        <option>用车申请</option>
                    </select>
                </div>
                <div class="flex items-center">
                    <span class="text-gray-500 mr-2">申请日期:</span>
                    <input type="date" class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <span class="mx-2">至</span>
                    <input type="date" class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500">
                </div>
                <div class="flex items-center">
                    <span class="text-gray-500 mr-2">状态:</span>
                    <select class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500">
                        <option>全部</option>
                        <option>待审批</option>
                        <option>已通过</option>
                        <option>已拒绝</option>
                        <option>已撤销</option>
                    </select>
                </div>
                <button class="px-4 py-1 bg-blue-100 text-blue-600 rounded hover:bg-blue-200">
                    <i class="fas fa-filter mr-1"></i>
                    筛选
                </button>
                <button class="px-4 py-1 text-gray-500 hover:text-blue-500">
                    <i class="fas fa-redo-alt mr-1"></i>
                    重置
                </button>
            </div>
        </div>

        <!-- 审批列表 -->
        <div class="bg-white rounded-lg shadow overflow-hidden">
            <table class="w-full enhanced-table">
                <thead>
                    <tr class="bg-gray-50 text-left">
                        <th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">申请信息</th>
                        <th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">申请人</th>
                        <th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">申请时间</th>
                        <th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">当前节点</th>
                        <th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                        <th class="px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                    </tr>
                </thead>
                <tbody class="divide-y divide-gray-200">
                    <!-- 审批项目1 -->
                    <tr class="hover:bg-blue-50">
                        <td class="px-6 py-4">
                            <div class="flex items-center">
                                <div class="h-10 w-10 bg-yellow-100 rounded-lg flex items-center justify-center mr-3">
                                    <i class="fas fa-calendar-plus text-yellow-500"></i>
                                </div>
                                <div>
                                    <div class="font-medium text-gray-900">请假申请</div>
                                    <div class="text-sm text-gray-500">事由: 个人事务</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4">
                            <div class="flex items-center">
                                <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="申请人头像" class="h-8 w-8 rounded-full mr-2">
                                <div>
                                    <div class="text-sm font-medium text-gray-900">王小明</div>
                                    <div class="text-sm text-gray-500">市场部 - 文案策划</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4 text-sm text-gray-500">
                            <div>2023-06-15</div>
                            <div>10:30:45</div>
                        </td>
                        <td class="px-6 py-4 text-sm text-gray-500">
                            <div>部门经理审批</div>
                            <div class="text-xs text-gray-400">等待您审批</div>
                        </td>
                        <td class="px-6 py-4">
                            <span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs rounded-full">待审批</span>
                        </td>
                        <td class="px-6 py-4 text-sm">
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 bg-blue-500 text-white rounded hover:bg-blue-600">审批</button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded hover:bg-gray-200">详情</button>
                            </div>
                        </td>
                    </tr>
                    <!-- 审批项目2 -->
                    <tr class="hover:bg-blue-50">
                        <td class="px-6 py-4">
                            <div class="flex items-center">
                                <div class="h-10 w-10 bg-green-100 rounded-lg flex items-center justify-center mr-3">
                                    <i class="fas fa-money-check-alt text-green-500"></i>
                                </div>
                                <div>
                                    <div class="font-medium text-gray-900">报销申请</div>
                                    <div class="text-sm text-gray-500">金额: ¥2,580.00</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4">
                            <div class="flex items-center">
                                <img src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="申请人头像" class="h-8 w-8 rounded-full mr-2">
                                <div>
                                    <div class="text-sm font-medium text-gray-900">李志强</div>
                                    <div class="text-sm text-gray-500">销售部 - 销售经理</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4 text-sm text-gray-500">
                            <div>2023-06-14</div>
                            <div>16:45:12</div>
                        </td>
                        <td class="px-6 py-4 text-sm text-gray-500">
                            <div>财务审核</div>
                            <div class="text-xs text-gray-400">等待您审批</div>
                        </td>
                        <td class="px-6 py-4">
                            <span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs rounded-full">待审批</span>
                        </td>
                        <td class="px-6 py-4 text-sm">
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 bg-blue-500 text-white rounded hover:bg-blue-600">审批</button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded hover:bg-gray-200">详情</button>
                            </div>
                        </td>
                    </tr>
                    <!-- 审批项目3 -->
                    <tr class="hover:bg-blue-50">
                        <td class="px-6 py-4">
                            <div class="flex items-center">
                                <div class="h-10 w-10 bg-purple-100 rounded-lg flex items-center justify-center mr-3">
                                    <i class="fas fa-plane-departure text-purple-500"></i>
                                </div>
                                <div>
                                    <div class="font-medium text-gray-900">出差申请</div>
                                    <div class="text-sm text-gray-500">目的地: 上海</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4">
                            <div class="flex items-center">
                                <img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="申请人头像" class="h-8 w-8 rounded-full mr-2">
                                <div>
                                    <div class="text-sm font-medium text-gray-900">张丽娜</div>
                                    <div class="text-sm text-gray-500">研发部 - 产品经理</div>
                                </div>
                            </div>
                        </td>
                        <td class="px-6 py-4 text-sm text-gray-500">
                            <div>2023-06-13</div>
                            <div>09:15:30</div>
                        </td>
                        <td class="px-6 py-4 text-sm text-gray-500">
                            <div>总经理审批</div>
                            <div class="text-xs text-gray-400">等待您审批</div>
                        </td>
                        <td class="px-6 py-4">
                            <span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs rounded-full">待审批</span>
                        </td>
                        <td class="px-6 py-4 text-sm">
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 bg-blue-500 text-white rounded hover:bg-blue-600">审批</button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded hover:bg-gray-200">详情</button>
                            </div>
                        </td>
                    </tr>
                    <!-- 审批项目4 -->
                    <tr class="hover:bg-blue-50">
                        <td class="px-6 py-4">
                            <div class="flex items-center">